<cfcomponent output="false">
	<cffunction name="init" access="public" output="false" returntype="LoadLightwire">
		<cfset variables["properties"] = arguments />
		<cfreturn this />
	</cffunction>
	
	<cffunction name="loadServiceFactory" access="public" output="false" returntype="lightwire.LightWire">
		<cfset var configBean = "" />
		<cfif NOT StructKeyExists(variables["properties"],"configBean")>
			<cfthrow message="You must define a configBean in order to load LightWire" />
		</cfif>
		<cfset configBean = CreateObject("component","config.LightwireBeanConfig").init(argumentCollection=variables["properties"]) />
		<cfreturn CreateObject("component","lightwire.LightWire").init(configBean) />
	</cffunction>
</cfcomponent>